package com.xnyzc.lhy.didi.feign.trajectory;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.didi.feign.fallback.trajectory.FeignTrajectoryServiceFallback;
import com.xnyzc.lhy.order.entity.gps.OaSysTrajectory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 轨迹服务
 * @author cuixiaojian
 * @date 2020-01-06
 */
@FeignClient(name = "${feign.applicationName.statistics}", fallback = FeignTrajectoryServiceFallback.class)
public interface FeignTrajectoryService {

    /**
     * 预估轨迹保存
     * @param oaSysTrajectoryList 轨迹集合
     * @return Rv
     */
    @PostMapping(value = "trajectory/savePredictedTrajectory")
    Rv savePredictedTrajectory(@RequestBody List<OaSysTrajectory> oaSysTrajectoryList);

}
